package com.kis.pattern.builder;

import com.kis.pojo.User;

/**
 * Created by yks on 15-11-17.
 */
public class UserBuilder {
    private Long id;
    private long ids;
    private String username;
    private String password;

    public User user;

    public UserBuilder(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public UserBuilder setId(Long id) {
        this.id = id;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public UserBuilder setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getIds() {
        return ids;
    }

    public UserBuilder setIds(long ids) {
        this.ids = ids;
        return this;
    }
    public User build(){
        return new User(this);
    }
}
